/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024. All rights reserved.
 * Description: phymaps of driver Vendor Hooks
 */

#ifdef CONFIG_MTD_PHYSMAP_NETBIOS

#if !defined(PHYS_MAP_OF_EXT_H) || defined(TRACE_HEADER_MULTI_READ)
#define PHYS_MAP_OF_EXT_H
#include <linux/platform_device.h>
#include <linux/mtd/partitions.h>
int trace_check_nor_flash_type(struct platform_device *pdev);
void trace_physmap_of_node(struct platform_device *dev, struct mtd_info *cmtd);
#endif

#else

#include <linux/tracepoint.h>
struct platform_device;
struct mtd_info;

static inline int trace_check_nor_flash_type(struct platform_device *pdev)
{
	return 0;
}

DECLARE_EVENT_NOP(physmap_of_node,
	TP_PROTO(struct platform_device *dev, struct mtd_info *cmtd),
	TP_ARGS(dev, cmtd));

#endif

